#include<iostream>
#include<vector>
using namespace std;
int main()
{
	vector<int>arr;
	/*arr.push_back(1);
	arr.push_back(2);
	arr.push_back(3);*/
	for (int i = 0; i < 10; i++) {
		arr.push_back(i+1);
	}
	//arr[1] = 10;
	arr.pop_back();
	arr.pop_back();
	arr.pop_back();
	for (int i = 0; i < arr.size(); i++) {
		cout << arr[i] << " ";
	}
	vector<int>().swap(arr);
	return 0;
}